package router

import (
	"gin-vue-admin/controller"
	"gin-vue-admin/middleware"
	"github.com/gin-gonic/gin"
)

func InitDeptRouter(Router *gin.RouterGroup) {
	DeptRouter := Router.Group("dept").Use(middleware.OperationRecord())
	{
		DeptRouter.GET("getDeptList", controller.GetDeptList)          // 获取机构列表
		DeptRouter.POST("createDept", controller.CreateDept)           // 新增部门
		DeptRouter.PUT("updateDept", controller.UpdateDept)            // 更新部门
		DeptRouter.DELETE("deleteDept/:deptId", controller.DeleteDept) // 更新部门
	}
}
